<?php

namespace Dreamcat\ConfigClient\Popo;

/**
 * nacos的token信息
 * @author vijay
 */
class NacosTokenInfo
{
    /** @var string token */
    private $token;
    /** @var int 过期的时间戳 */
    private $expireTime;

    /**
     * @return string
     */
    public function getToken(): string
    {
        return $this->token;
    }

    /**
     * @param string $token
     * @return NacosTokenInfo
     */
    public function setToken(string $token): NacosTokenInfo
    {
        $this->token = $token;
        return $this;
    }

    /**
     * @return int
     */
    public function getExpireTime(): int
    {
        return $this->expireTime;
    }

    /**
     * @param int $expireTime
     * @return NacosTokenInfo
     */
    public function setExpireTime(int $expireTime): NacosTokenInfo
    {
        $this->expireTime = $expireTime;
        return $this;
    }
}

# end of file
